package com.ly.repository;

import com.ly.entity.Subway;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface SubwayRepository  extends CrudRepository<Subway,Long> {
    /**
     * 通过城市名查询地铁
     * @param cityEnName
     * @return
     */
    List<Subway> findAllByCityEnName(String cityEnName);
}
